package com.bailian.snails.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gaoxu
 * date: Created on 2021/6/14 上午7:40
 */
@RestController
@RequestMapping(value = "/goods")
public class GoodsController {

    @Value("${user.name}")
    private String userName;

    @GetMapping(value = "/query-goods")
    public String queryGoodsDetail() {
        return userName;
    }

}
